package HomeWork1;

public class Test02 {
    public static void main(String[] args) {
        Circle circle = new Circle(4.5);
        circle.showArea(circle.r);
        circle.showPerimeter(circle.r);
    }
}
class Circle{
    public double r;
    public Circle(double r){
        this.r=r;
    }
    public void showArea(double r){
        double area=3.14*r*r;
        System.out.println(area);
    }
    public void showPerimeter(double r){
        double perimeter=2*3.14*r;
        System.out.println(perimeter);
    }
}
